package com.lu.springboot01.service.impl;

import com.lu.springboot01.mapper.UserMapper;
import com.lu.springboot01.pojo.User;
import com.lu.springboot01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> finall() {
        List<User> all = userMapper.findAll();
        return all;
    }
}
